<!DOCTYPE html>
<!--conf
<sample>
               <product version="3.0" edition="std"/>
                       <modifications>
                               <modified date="110701"/>
                       </modifications>
               </sample>
 -->
<html>
<head>
	<title>Grid linked to Grid</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
</head>
<body>
	<div id="gridbox" style="width:600px; height:270px; background-color:white;"></div>
	<br>
	<div id="gridbox2" style="width:600px; height:270px; background-color:white;"></div>
	<script>
		mygrid = new dhtmlXGridObject('gridbox');
		mygrid.setImagePath("../../../codebase/imgs/");
		mygrid.setSkin("dhx_skyblue")
		mygrid.setHeader("Count,Name");
		mygrid.init();
		mygrid.load("../common/data/grid.xml");
		
		mygrid2 = new dhtmlXGridObject('gridbox2');
		mygrid2.setImagePath("../../../codebase/imgs/");
		mygrid2.setSkin("dhx_skyblue")
		mygrid2.setHeader("Count,Name");
		mygrid2.init();
		mygrid2.bind(mygrid, function(id, master){
			return this.item(id).cell0*1 >= master.cell0*1;
		});
		mygrid2.load("../common/data/grid.xml");
	</script>
</body>
</html>
